﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AnimalFight.Lib.Interface;

namespace AnimalFight.Lib.Data
{
    public class Horse : AnimalBase, IDefense
    {
        public event DefenseDelegate DefenseEvent;

        public bool IsDefending { get; set; }

        public void Defense()
        {
            if (DefenseEvent != null)
            {
                DefenseEvent(this, new EventHandlers.DefenseEventHandler
                    {
                        AnimalName = this.Name,
                        Target = EventHandlers.Animals.Horse
                    });
            }
        }
    }
}
